<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/Apply-for-supplier.css" />
	</head>

	<body>
		<div class="web">
			<header>
				<div class="img"><a href="product.html"><img src="img/icon_back.png"/></a></div>
				<div class="letter">
					<a href="supplier-news.html"><img src="img/icon_msg.png" /></a>
				</div>
				<div class="nav">
					<span><a href="Apply-for-agent.html">申请代理</a></span>
					<span class="active"><a href="Apply-for-supplier.html">申请供应商</a></span>
				</div>
			</header>

			<div id="big">
				<div class="click">
					<p>申请供应商</p>
					<form action="" method="post">
						<div class="type t3">
							<span>企业名称</span>
							<input type="tel" name="" id="" value="" placeholder="请输入联系人电话" />
						</div>
						<div class="type">
							<span>联系人</span>
							<input type="text" name="" id="" value="" placeholder="请输入联系人" />
						</div>
						<div class="type t2">
							<span>联系人电话</span>
							<input type="tel" name="" id="" value="" placeholder="请输入联系人电话" />
						</div>
						<div class="type t4">
							<textarea placeholder="请输入联系人地址"></textarea>
						</div>
						<input type="button" id="submitBtn" value="提交" />
					</form>
				</div>
			</div>
			<div id="small">
				<img src="img/smile.png" />
				<p>申请供应商提交成功!</p>
			</div>

			<section>
				<div class="sup">
					<img src="img/supplier.jpg" />
				</div>
				<div class="text">
					<p>
						免费申请成为供应商，一键开店，简单、快捷、明了，欢迎申请！
					</p>
				</div>
				<div class="a">
					<a onclick="open1()">申请成为供应商</a>
				</div>
			</section>
		</div>

		<script type="text/javascript">
			function open1() {
				document.getElementById("big").style.display = "block";
			}

			function close1() {
				document.getElementById("big").style.display = "none";
			}

			var smallDiv = document.getElementById("small");
			var submitBtn = document.querySelector("#submitBtn");
			console.log(submitBtn);
			submitBtn.addEventListener("click", function() {
				close1();
				console.log(smallDiv)
				smallDiv.style.display = "block";
				setTimeout(function() {
					smallDiv.style.display = "none";

				}, 2000)
			})
		</script>

		<script>
			document.body.style.height = window.innerHeight + "px";

			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 640) + 'px';
				//字体大小   =1个rem单位表示多少个像素*(设备的宽度 /设计宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>

	</body>

</html>